package request

// 创建秒杀
type CreateActivity struct {
	GoodsId        int32  `json:"goods_id" form:"goods_id" binding:"required"`
	UserId         int32  `json:"user_id" form:"user_id" binding:"required"`
	ActivityTitle  string `json:"activity_title" form:"activity_title" binding:"required"`
	Info           string `json:"info" form:"info" binding:"required"`
	Price          int32  `json:"price" form:"price"`
	SeckillPrice   int32  `json:"seckill_price" form:"seckill_price" binding:"required"`
	Stock          int32  `json:"stock" form:"stock" binding:"required"`
	GoodsStatus    int32  `json:"goods_status" form:"goods_status" binding:"required"`
	StartTime      string `json:"start_time" form:"start_time" binding:"required"`
	EndTime        string `json:"end_time" form:"end_time" binding:"required"`
	Num            int32  `json:"num" form:"num" binding:"required"`
	ActivityStatus int32  `json:"activity_status" form:"activity_status" binding:"required"`
}

// 执行秒杀
type ExecuteActivity struct {
	UserId int32 `json:"user_id form:user_id" binding:"required"`

	ActivityId int32 `json:"activity_id form:activity_id" binding:"required"`
}

// 完成秒杀
type FinishActivity struct {
	GoodsId    int32 `json:"goods_id form:goods_id" binding:"required"`
	ActivityId int32 `json:"activity_id form:activity_id" binding:"required"`
}

// 展示活动列表
type ListActivity struct {
	Id int32 `json:"id form:id"`
}
